package protocol

import "encoding/json"

func MarshalEnvelope(env *Envelope) ([]byte, error) {
	return json.Marshal(env)
}

func UnmarshalEnvelope(data []byte, env *Envelope) error {
	return json.Unmarshal(data, env)
}
